package com.ruoyi.yipaiju.mapper;

import java.util.List;
import com.ruoyi.yipaiju.domain.SpiderHouse;
import org.apache.ibatis.annotations.Param;

/**
 * 爬虫房源列Mapper接口
 * 
 * @author liuwp
 * @date 2023-06-23
 */
public interface SpiderHouseMapper 
{
    /**
     * 查询爬虫房源列
     * 
     * @param id 爬虫房源列主键
     * @return 爬虫房源列
     */
    public SpiderHouse selectSpiderHouseById(Long id);

    /**
     * 查询爬虫房源列列表
     * 
     * @param spiderHouse 爬虫房源列
     * @return 爬虫房源列集合
     */
    public List<SpiderHouse> selectSpiderHouseList(SpiderHouse spiderHouse);

    /**
     * 可以业务主键查询一条爬虫房源列
     *
     * @param spiderHouse 爬虫房源列
     * @return 爬虫房源列集合
     */
    public SpiderHouse selectOneSpiderHouse(SpiderHouse spiderHouse);

    /**
     * 新增爬虫房源列
     * 
     * @param spiderHouse 爬虫房源列
     * @return 结果
     */
    public int insertSpiderHouse(SpiderHouse spiderHouse);

    /**
     * 修改爬虫房源列
     * 
     * @param spiderHouse 爬虫房源列
     * @return 结果
     */
    public int updateSpiderHouse(SpiderHouse spiderHouse);

    /**
     * 条件修改爬虫房源列
     *
     * @param spiderHouse 爬虫房源列
     * @param spiderHouse 爬虫房源列条件
     * @return 结果
     */
    public int updateSpiderHouseCondition(@Param("spiderHouse") SpiderHouse spiderHouse, @Param("spiderHouseCondition") SpiderHouse spiderHouseCondition);

    /**
     * 删除爬虫房源列
     * 
     * @param id 爬虫房源列主键
     * @return 结果
     */
    public int deleteSpiderHouseById(Long id);

    /**
     * 条件删除爬虫房源列
     *
     * @param spiderHouse 爬虫房源列
     * @return 结果
     */
    public int deleteSpiderHouseByCondition(SpiderHouse spiderHouse);

    /**
     * 批量删除爬虫房源列
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSpiderHouseByIds(Long[] ids);

    public List<SpiderHouse> selectSpiderHouseListByCodes(List<SpiderHouse> spiderHouses);

    public int insertSpiderHouseList(List<SpiderHouse> spiderHouses);

    public int updateSpiderHouseList(List<SpiderHouse> spiderHouses);

    public int updateSpiderHouseListGrabing(SpiderHouse spiderHouse);
}
